import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useStatusStore = defineStore(
  'status',
  () => {
    const componentKey = ref(0)
    const setComponentKey = (key) => {
      componentKey.value = key
    }
    return {
      componentKey,
      setComponentKey
    }
  },
  {
    persist: true
  }
)
